<template>
<div class="screen-container">
  <h3>OUR TEAM</h3>
  <h4>Expert Team Members</h4>
  <div class="team-list">
    <template v-for="(item,index) in data" :key="item.title">
      <div class="team-box">
        <el-card>
          <div class="img-box">
            <img :src="`/static/picture/team-${ index + 1 }.jpg`" alt="">
          </div>
          <h5>Full Name</h5>
          <p>Designation</p>
          <div class="btn-box">
            <div class="right-arrow">
              <IconReturn />
            </div>
          </div>
        </el-card>
      </div>
    </template>
  </div>
</div>
</template>

<script setup>
import { reactive } from 'vue'
import IconReturn from '~icons/my-icons/back'

const data = reactive(['', '', '', ''])
</script>

<style lang="scss" scoped>
$base-color: #ff3e41;
.screen-container {
  width: 1200px;
  margin: 0 auto;

  h3 {
    color: #51CFED;
  }
  
  h4 {
    padding: 17px 0;
    padding-bottom: 24px;
    font-size: 36px;
  }

  .team-list {
    display: flex;
  }

  .team-box {
    width: 33.33%;
    padding: 12px 12px;
    box-sizing: border-box;
    cursor: pointer;

    .img-box {
      width: 100%;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }
    }

    h5 {
      text-align: left;
      font-size: 24px;
      line-height: 24px;
      padding: 12px 0;
    }

    p {
      margin-top: 7px;
      color: gray;
      font-size: 18px;
      text-align: left;
    }

    .btn-box {
      margin-top: 16px;
      text-align: left;

      .right-arrow {
        display: inline-block;
        cursor: pointer;
        background-color: $base-color;
        width: 32px;
        padding-left: 10px;
        padding-top: 7px;
        color: white;
        line-height: 27px;
        border-radius: 0 24px 24px 0;
      }
    }
  }
}
</style>
